package org.jeecg.modules.gis.config;

public class DynamicTableContext {
    private static final ThreadLocal<String> tableNameHolder = new ThreadLocal<>();

    public static void setTableName(String tableName) {
        tableNameHolder.set(tableName);
    }

    public static String getTableName() {
        return tableNameHolder.get();
    }

    public static void clear() {
        tableNameHolder.remove();
    }
}
